package com.igeekhome.pojo;

import java.util.ArrayList;
import java.util.List;

public class MonSignMonitoringExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MonSignMonitoringExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAffiliatedNetworkIdIsNull() {
            addCriterion("affiliated_network_id is null");
            return (Criteria) this;
        }

        public Criteria andAffiliatedNetworkIdIsNotNull() {
            addCriterion("affiliated_network_id is not null");
            return (Criteria) this;
        }

        public Criteria andAffiliatedNetworkIdEqualTo(Integer value) {
            addCriterion("affiliated_network_id =", value, "affiliatedNetworkId");
            return (Criteria) this;
        }

        public Criteria andAffiliatedNetworkIdNotEqualTo(Integer value) {
            addCriterion("affiliated_network_id <>", value, "affiliatedNetworkId");
            return (Criteria) this;
        }

        public Criteria andAffiliatedNetworkIdGreaterThan(Integer value) {
            addCriterion("affiliated_network_id >", value, "affiliatedNetworkId");
            return (Criteria) this;
        }

        public Criteria andAffiliatedNetworkIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("affiliated_network_id >=", value, "affiliatedNetworkId");
            return (Criteria) this;
        }

        public Criteria andAffiliatedNetworkIdLessThan(Integer value) {
            addCriterion("affiliated_network_id <", value, "affiliatedNetworkId");
            return (Criteria) this;
        }

        public Criteria andAffiliatedNetworkIdLessThanOrEqualTo(Integer value) {
            addCriterion("affiliated_network_id <=", value, "affiliatedNetworkId");
            return (Criteria) this;
        }

        public Criteria andAffiliatedNetworkIdIn(List<Integer> values) {
            addCriterion("affiliated_network_id in", values, "affiliatedNetworkId");
            return (Criteria) this;
        }

        public Criteria andAffiliatedNetworkIdNotIn(List<Integer> values) {
            addCriterion("affiliated_network_id not in", values, "affiliatedNetworkId");
            return (Criteria) this;
        }

        public Criteria andAffiliatedNetworkIdBetween(Integer value1, Integer value2) {
            addCriterion("affiliated_network_id between", value1, value2, "affiliatedNetworkId");
            return (Criteria) this;
        }

        public Criteria andAffiliatedNetworkIdNotBetween(Integer value1, Integer value2) {
            addCriterion("affiliated_network_id not between", value1, value2, "affiliatedNetworkId");
            return (Criteria) this;
        }

        public Criteria andReceiptNumberIsNull() {
            addCriterion("receipt_number is null");
            return (Criteria) this;
        }

        public Criteria andReceiptNumberIsNotNull() {
            addCriterion("receipt_number is not null");
            return (Criteria) this;
        }

        public Criteria andReceiptNumberEqualTo(Integer value) {
            addCriterion("receipt_number =", value, "receiptNumber");
            return (Criteria) this;
        }

        public Criteria andReceiptNumberNotEqualTo(Integer value) {
            addCriterion("receipt_number <>", value, "receiptNumber");
            return (Criteria) this;
        }

        public Criteria andReceiptNumberGreaterThan(Integer value) {
            addCriterion("receipt_number >", value, "receiptNumber");
            return (Criteria) this;
        }

        public Criteria andReceiptNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("receipt_number >=", value, "receiptNumber");
            return (Criteria) this;
        }

        public Criteria andReceiptNumberLessThan(Integer value) {
            addCriterion("receipt_number <", value, "receiptNumber");
            return (Criteria) this;
        }

        public Criteria andReceiptNumberLessThanOrEqualTo(Integer value) {
            addCriterion("receipt_number <=", value, "receiptNumber");
            return (Criteria) this;
        }

        public Criteria andReceiptNumberIn(List<Integer> values) {
            addCriterion("receipt_number in", values, "receiptNumber");
            return (Criteria) this;
        }

        public Criteria andReceiptNumberNotIn(List<Integer> values) {
            addCriterion("receipt_number not in", values, "receiptNumber");
            return (Criteria) this;
        }

        public Criteria andReceiptNumberBetween(Integer value1, Integer value2) {
            addCriterion("receipt_number between", value1, value2, "receiptNumber");
            return (Criteria) this;
        }

        public Criteria andReceiptNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("receipt_number not between", value1, value2, "receiptNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsSignedNumberIsNull() {
            addCriterion("received_items_signed_number is null");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsSignedNumberIsNotNull() {
            addCriterion("received_items_signed_number is not null");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsSignedNumberEqualTo(Integer value) {
            addCriterion("received_items_signed_number =", value, "receivedItemsSignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsSignedNumberNotEqualTo(Integer value) {
            addCriterion("received_items_signed_number <>", value, "receivedItemsSignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsSignedNumberGreaterThan(Integer value) {
            addCriterion("received_items_signed_number >", value, "receivedItemsSignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsSignedNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("received_items_signed_number >=", value, "receivedItemsSignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsSignedNumberLessThan(Integer value) {
            addCriterion("received_items_signed_number <", value, "receivedItemsSignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsSignedNumberLessThanOrEqualTo(Integer value) {
            addCriterion("received_items_signed_number <=", value, "receivedItemsSignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsSignedNumberIn(List<Integer> values) {
            addCriterion("received_items_signed_number in", values, "receivedItemsSignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsSignedNumberNotIn(List<Integer> values) {
            addCriterion("received_items_signed_number not in", values, "receivedItemsSignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsSignedNumberBetween(Integer value1, Integer value2) {
            addCriterion("received_items_signed_number between", value1, value2, "receivedItemsSignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsSignedNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("received_items_signed_number not between", value1, value2, "receivedItemsSignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsUnsignedNumberIsNull() {
            addCriterion("received_items_unsigned_number is null");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsUnsignedNumberIsNotNull() {
            addCriterion("received_items_unsigned_number is not null");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsUnsignedNumberEqualTo(Integer value) {
            addCriterion("received_items_unsigned_number =", value, "receivedItemsUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsUnsignedNumberNotEqualTo(Integer value) {
            addCriterion("received_items_unsigned_number <>", value, "receivedItemsUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsUnsignedNumberGreaterThan(Integer value) {
            addCriterion("received_items_unsigned_number >", value, "receivedItemsUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsUnsignedNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("received_items_unsigned_number >=", value, "receivedItemsUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsUnsignedNumberLessThan(Integer value) {
            addCriterion("received_items_unsigned_number <", value, "receivedItemsUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsUnsignedNumberLessThanOrEqualTo(Integer value) {
            addCriterion("received_items_unsigned_number <=", value, "receivedItemsUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsUnsignedNumberIn(List<Integer> values) {
            addCriterion("received_items_unsigned_number in", values, "receivedItemsUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsUnsignedNumberNotIn(List<Integer> values) {
            addCriterion("received_items_unsigned_number not in", values, "receivedItemsUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsUnsignedNumberBetween(Integer value1, Integer value2) {
            addCriterion("received_items_unsigned_number between", value1, value2, "receivedItemsUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andReceivedItemsUnsignedNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("received_items_unsigned_number not between", value1, value2, "receivedItemsUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andSentNumberIsNull() {
            addCriterion("sent_number is null");
            return (Criteria) this;
        }

        public Criteria andSentNumberIsNotNull() {
            addCriterion("sent_number is not null");
            return (Criteria) this;
        }

        public Criteria andSentNumberEqualTo(Integer value) {
            addCriterion("sent_number =", value, "sentNumber");
            return (Criteria) this;
        }

        public Criteria andSentNumberNotEqualTo(Integer value) {
            addCriterion("sent_number <>", value, "sentNumber");
            return (Criteria) this;
        }

        public Criteria andSentNumberGreaterThan(Integer value) {
            addCriterion("sent_number >", value, "sentNumber");
            return (Criteria) this;
        }

        public Criteria andSentNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("sent_number >=", value, "sentNumber");
            return (Criteria) this;
        }

        public Criteria andSentNumberLessThan(Integer value) {
            addCriterion("sent_number <", value, "sentNumber");
            return (Criteria) this;
        }

        public Criteria andSentNumberLessThanOrEqualTo(Integer value) {
            addCriterion("sent_number <=", value, "sentNumber");
            return (Criteria) this;
        }

        public Criteria andSentNumberIn(List<Integer> values) {
            addCriterion("sent_number in", values, "sentNumber");
            return (Criteria) this;
        }

        public Criteria andSentNumberNotIn(List<Integer> values) {
            addCriterion("sent_number not in", values, "sentNumber");
            return (Criteria) this;
        }

        public Criteria andSentNumberBetween(Integer value1, Integer value2) {
            addCriterion("sent_number between", value1, value2, "sentNumber");
            return (Criteria) this;
        }

        public Criteria andSentNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("sent_number not between", value1, value2, "sentNumber");
            return (Criteria) this;
        }

        public Criteria andDeliverySignedNumberIsNull() {
            addCriterion("delivery_signed_number is null");
            return (Criteria) this;
        }

        public Criteria andDeliverySignedNumberIsNotNull() {
            addCriterion("delivery_signed_number is not null");
            return (Criteria) this;
        }

        public Criteria andDeliverySignedNumberEqualTo(Integer value) {
            addCriterion("delivery_signed_number =", value, "deliverySignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliverySignedNumberNotEqualTo(Integer value) {
            addCriterion("delivery_signed_number <>", value, "deliverySignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliverySignedNumberGreaterThan(Integer value) {
            addCriterion("delivery_signed_number >", value, "deliverySignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliverySignedNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("delivery_signed_number >=", value, "deliverySignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliverySignedNumberLessThan(Integer value) {
            addCriterion("delivery_signed_number <", value, "deliverySignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliverySignedNumberLessThanOrEqualTo(Integer value) {
            addCriterion("delivery_signed_number <=", value, "deliverySignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliverySignedNumberIn(List<Integer> values) {
            addCriterion("delivery_signed_number in", values, "deliverySignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliverySignedNumberNotIn(List<Integer> values) {
            addCriterion("delivery_signed_number not in", values, "deliverySignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliverySignedNumberBetween(Integer value1, Integer value2) {
            addCriterion("delivery_signed_number between", value1, value2, "deliverySignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliverySignedNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("delivery_signed_number not between", value1, value2, "deliverySignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliveryUnsignedNumberIsNull() {
            addCriterion("delivery_unsigned_number is null");
            return (Criteria) this;
        }

        public Criteria andDeliveryUnsignedNumberIsNotNull() {
            addCriterion("delivery_unsigned_number is not null");
            return (Criteria) this;
        }

        public Criteria andDeliveryUnsignedNumberEqualTo(Integer value) {
            addCriterion("delivery_unsigned_number =", value, "deliveryUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliveryUnsignedNumberNotEqualTo(Integer value) {
            addCriterion("delivery_unsigned_number <>", value, "deliveryUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliveryUnsignedNumberGreaterThan(Integer value) {
            addCriterion("delivery_unsigned_number >", value, "deliveryUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliveryUnsignedNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("delivery_unsigned_number >=", value, "deliveryUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliveryUnsignedNumberLessThan(Integer value) {
            addCriterion("delivery_unsigned_number <", value, "deliveryUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliveryUnsignedNumberLessThanOrEqualTo(Integer value) {
            addCriterion("delivery_unsigned_number <=", value, "deliveryUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliveryUnsignedNumberIn(List<Integer> values) {
            addCriterion("delivery_unsigned_number in", values, "deliveryUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliveryUnsignedNumberNotIn(List<Integer> values) {
            addCriterion("delivery_unsigned_number not in", values, "deliveryUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliveryUnsignedNumberBetween(Integer value1, Integer value2) {
            addCriterion("delivery_unsigned_number between", value1, value2, "deliveryUnsignedNumber");
            return (Criteria) this;
        }

        public Criteria andDeliveryUnsignedNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("delivery_unsigned_number not between", value1, value2, "deliveryUnsignedNumber");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}